<template>
  hello
</template>
<script setup>
import { getCurrentInstance, ref, inject } from "vue";
//相当于this
// const { proxy } = getCurrentInstance()
// console.log(proxy);
// proxy.axios.post('http://localhost:8082/test/goods', {}).then(res => {
//   console.log(res);
// })
const $axios = inject('$axios')
$axios.post('/api/test/goods', {}).then(res => {
  console.log(res);
})



</script>

<style scoped>
</style>
